package play.scope

val empty = "test".let {               
    customPrint(it)                    
    it.isEmpty()                       
}

fun printNonNull(str: String?) {
    println("Printing \"$str\":")

    str?.let {                         
        print("\t")
        customPrint(it)
        customPrint(it.length.toString())
        println()
    }
}

fun customPrint(str: String?) {
    println("=>$str<=")
}

fun main() {

    println(" is empty: $empty")
    printNonNull(null)
    printNonNull("my string")
}
